package com.qiandao.xuexitong.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "jwt")
@Data
public class JwtProperties {

    /**
     * 管理端员工生成jwt令牌相关配置
     */
//    private String adminSecretKey;
//    private long adminTtl;
//    private String adminTokenName;

    /**
     * 用户端微信用户生成jwt令牌相关配置
     */
    @Value("${jwt.user-secret-key}")
    private String SecretKey;
    @Value("${jwt.expiration}")
    private long userTtl;
    @Value("${jwt.user-token-name}")
    private String userTokenName;

}
